package com.aj.http.request;

import java.util.HashMap;

import android.content.Context;
import android.util.Log;

import com.aj.http.AsynchronizationHttpRequest;
import com.aj.http.AsynchronizationHttpRequest.IHttpCallBack;

public class AlbumManagerRequest extends BaseRequset {

	private static final String TAG = AlbumManagerRequest.class.getName();

	public void excute(Context context, String userId, String oper,
			String albumId, String albumName, String albumDesc,
			String albumUrl, String albumType, IHttpCallBack httpCallBack) {
		HashMap<String, String> paramsHashMap = new HashMap<String, String>();
		paramsHashMap.put("userId", userId);
		paramsHashMap.put("oper", oper);
		if (albumId != null) {
			paramsHashMap.put("albumId", albumId);
		}
		if (albumName != null) {
			paramsHashMap.put("albumName", albumName);
		}
		if (albumDesc != null) {
			paramsHashMap.put("albumDesc", albumDesc);
		}
		if (albumUrl != null) {
			paramsHashMap.put("albumUrl", albumUrl);
		}
		if (albumType != null) {
			paramsHashMap.put("albumType", albumType);
		}
		String tempString = getParams(SERVICE_FAMILY_ZONE_MANAGER_STRING,
				paramsHashMap);
		Log.e(TAG, "tempString:" + tempString);
		// TODO加密
		AsynchronizationHttpRequest request = new AsynchronizationHttpRequest();
		request.excute(context, BASE_REQUEST_URL_NOPAGE_STRING, tempString,
				httpCallBack);
	}

}
